AS=as -32
CC=gcc
CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin \
-ffreestanding -fPIC $(SMP_FL) -fno-stack-protector
all: clean memtest.bin
bootsect.s: bootsect.S defs.h
	$(CC) -E -traditional $< -o $@
memtest.bin: bootsect.o memtest.bin.lds
	$(LD) -T memtest.bin.lds bootsect.o -o memtest.bin
clean:
	rm -f *.o *.s *.iso memtest.bin memtest memtest_shared \
	memtest_shared.bin memtest.iso